<div class="bloc-content" id="bloc-content-<?php echo $bloc_id ?>">
    <input type="hidden" name="bloc_id" value="<?php echo $bloc_id ?>" />

    <ul>

        <?php if ($show_delete) : ?>
            <div class="_fr">
                <a class="delete-bloc" onclick="Blocuri.deleteBloc.show(<?php echo $bloc_id ?>)">şterge blocul</a>
            </div>
        <?php endif; ?>

        <div class="_fr">
            <a class="add-scara">adaugă o scară</a>
        </div>

        <div class="_fl">Scara:</div>

        <?php foreach ($scara as $value) : ?>
            <li>
                <?php $href = $lazy_load ? url_for('apartamente/xScara?id=' . $value['ID'], true) : '#scara-' . $value['ID']; ?>
                <a id="scara-tab-<?php echo $value['ID'] ?>" class="<?php if ($value['INCOMPLETE']) echo 'incomplete' ?>" href="<?php echo $href ?>"><?php echo $value['NAME'] ?></a>
            </li>
        <?php endforeach; ?>
    </ul>

    <?php if (!$lazy_load): ?>
        <div id="scara-<?php echo $value['ID'] ?>">
            <?php include_component('apartamente', 'scaraContent', array('id' => $value['ID'])) ?>
        </div>
    <?php endif; ?>

</div>

<script type="text/javascript">
    Scara.tabs("bloc-content-<?php echo $bloc_id ?>");
</script>
